﻿using FreeSql;
using FreeSql.DataAnnotations;
using System.ComponentModel;

namespace BlazorApp1.Entity
{
    [Description("用户信息表")]
    public class UserEntity:BaseEntity<UserEntity,int>
    {
        [Description("用户名")]
        public string? UserName { get; set; }
        [Description("密码")]
        public string? Password { get; set; }
        [Description("显示名")]
        public string? NickName { get; set; }
        [Description("角色ID")]
        public int RoleId { get; set; }

        [Navigate(nameof(RoleId))]
        public  RoleEntity? Role { get; set; }
    }
}
